<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1">
    <meta content="telephone=no" name="format-detection"/>
    <script>
        var isJsBridgeReady = false;
        var isZHKIOS= false;
        function readyFunc(device){
            isJsBridgeReady = true;
            if(device == 'true'){
              isZHKIOS = true;
            }
        }
    </script>
    <title>门店详情</title>

    <!-- css -->
    <link rel="stylesheet" href="../css/pro_app.min.css"/>
    <link rel="stylesheet" href="../lib/yz-sm.min.css"/>
    <link rel="stylesheet" href="../lib/swiper.min.css"/>
    <link rel="stylesheet" href="../lib/mobiscroll/mobiscroll.custom-2.17.0.min.css"/>
</head>

<body>
    <div class="page-group">
        <div class="page store-detail" id="storeDetailPage4Wangshang">
            <div class="scroll-view">

            </div>

            <script type="text/template" id="storeDetailTPL4Wangshang">

                <!-- big头部 -->
                <div class="big-header">

                    <!-- 导航 -->
                    <ul class="header">
                        <li class="left"><a class="external back" href="javascript:void(0);" name="back"><i class="zhk-nav_back"></i>返回</a></li>
                        <li class="middle">门店详情</li>
                        <li class="right"></li>
                    </ul>

                    <!-- 门店头部 -->
                    <div class="title-content">
                        <span class="store-icon">
                            <img src="{{data.brandLogoUrl?data.brandLogoUrl : '../images/detail_md.png'}}" />
                        </span>
                        <span class="store-info">
                            <p class="store-name">{{data.mainShopName}}{{data.branchShopName?"("+data.branchShopName+")":""}}</p>
                            <p class="type">
                                <span>
                                    {{if data.categoryLevel1}}
                                        {{data.categoryLevel1}}
                                        {{if data.categoryLevel2}}
                                            /{{data.categoryLevel2}}
                                            {{if data.categoryLevel3}}
                                                /{{data.categoryLevel3}}
                                            {{/if}}
                                        {{/if}}
                                    {{else}}
                                        无
                                    {{/if}}
                                </span>
                            </p>
                        </span>
                    </div>
                </div>

                <div class="page-body">

                    <!-- 门店基础 -->
                    <ul class="info-box">
                        <li>
                            <span class="left">联系电话</span>
                            <span class="right">{{data.contactNumber}}</span>
                        </li>
                        <li>
                            <span class="left">门店地址</span>
                            <span class="right">{{data.address}}</span>
                        </li>
                        <li>
                            <span class="left">口碑门店状态</span>
                            <span class="right">{{constants.store.getKoubeiStatus(data.isOnline)}}</span>
                        </li>
                    </ul>

                    <!-- 版本信息：金员宝、银员宝、快享付-->
                    {{if data.serviceVersionType != constants.store.SERVICE_VERSION_TYPE.none}}
                    <div class="title">版本信息</div>
                    <ul class="info-box">
                        <li>
                            <span class="left">当前版本</span>
                            <span class="right">{{constants.store.getServiceVersionTypeText(data.serviceVersionType)}}</span>
                        </li>
                        <li>
                            <span class="left">订购状态</span>
                            <span class="right">
                                {{if data.serviceVersionType == constants.store.SERVICE_VERSION_TYPE.cloud_share_pay}}
                                    {{constants.store.getCloudSharePayStatusText(data.aPayCodeStatus)}}
                                {{else}}
                                    {{constants.store.getSubscribeStatus(data.proUpgradeStatus)}}
                                {{/if}}
                            </span>
                        </li>
                        <li>
                            <span class="left">有效期</span>
                            <span class="right">{{data.expireDate}}</span>
                        </li>
                    </ul>
                    {{/if}}

                    <!-- 收款渠道：金员宝（现金、微信、支付宝、银联），银员宝（现金、微信、支付宝），快享付（微信、支付宝）、未订购（支付宝） -->
                    <div class="title">收款渠道</div>
                    <ul class="gathering-channel clearfix">

                        {{if data.serviceVersionType == constants.store.SERVICE_VERSION_TYPE.none}} <!-- 未订购 -->

                            <li>
                                <p class="top blue-gradient zhk-detail_zfb {{data.alipayPayStatus != constants.store.ALI_PAY_STATUS.open ? 'not-open' : ''}}"></p>
                                <p class="bottom">支付宝</p>
                            </li>

                        {{else if data.serviceVersionType == constants.store.SERVICE_VERSION_TYPE.cloud_share_pay}} <!-- 快享付 -->

                            <li>
                                <p class="top blue-gradient zhk-detail_zfb {{data.alipayPayStatus != constants.store.ALI_PAY_STATUS.open ? 'not-open' : ''}}"></p>
                                <p class="bottom">支付宝</p>
                            </li>
                            <li>
                                <p class="top green-gradient zhk-detail_wx {{data.merchantStatus != constants.weixin_wangshang.WEIXIN_PAY_STATUS.open? 'not-open' : ''}}"></p>
                                <p class="bottom">微信支付</p>
                            </li>

                        {{else if data.serviceVersionType == constants.store.SERVICE_VERSION_TYPE.silver}} <!-- 银元宝 -->

                            <li>
                                <p class="top blue-gradient zhk-detail_zfb {{data.alipayPayStatus != constants.store.ALI_PAY_STATUS.open ? 'not-open' : ''}}"></p>
                                <p class="bottom">支付宝</p>
                            </li>
                            <li>
                                <p class="top orange-gradient zhk-detail_cash"></p>
                                <p class="bottom">现金收款</p>
                            </li>
                            <li>
                                <p class="top green-gradient zhk-detail_wx {{data.merchantStatus != constants.weixin_wangshang.WEIXIN_PAY_STATUS.open? 'not-open' : ''}}"></p>
                                <p class="bottom">微信支付</p>
                            </li>

                        {{else if data.serviceVersionType == constants.store.SERVICE_VERSION_TYPE.gold}}  <!-- 金元宝 -->

                            <li>
                                <p class="top blue-gradient zhk-detail_zfb {{data.alipayPayStatus != constants.store.ALI_PAY_STATUS.open ? 'not-open' : ''}}"></p>
                                <p class="bottom">支付宝</p>
                            </li>
                            <li>
                                <p class="top orange-gradient zhk-detail_cash"></p>
                                <p class="bottom">现金收款</p>
                            </li>
                            <li>
                                <p class="top deepBlue-gradient zhk-detail_yl {{data.unionpay != constants.store.UNION_PAY_STATUS.open? 'not-open' : ''}}"></p>
                                <p class="bottom">银联</p>
                            </li>
                            <li>
                                <p class="top green-gradient zhk-detail_wx {{data.merchantStatus != constants.weixin_wangshang.WEIXIN_PAY_STATUS.open? 'not-open' : ''}}"></p>
                                <p class="bottom">微信支付</p>
                            </li>


                        {{/if}}
                    </ul>

                    <!-- 微信账户管理
                         金员宝、银员宝：订购状态"正常"
                         快享付：非"未开通"
                    -->
                    {{if ( (data.serviceVersionType == constants.store.SERVICE_VERSION_TYPE.silver || data.serviceVersionType == constants.store.SERVICE_VERSION_TYPE.gold) && data.proUpgradeStatus == constants.store.SUBSCRIBE_STATUS.normal ) || ( data.serviceVersionType == constants.store.SERVICE_VERSION_TYPE.cloud_share_pay && data.aPayCodeStatus != constants.store.CLOUD_SHARE_PAY_STATUS.unOpen )}}
                    <div class="title">收款账户管理</div>
                    <ul class="manage">
                        <li>
                            <span class="left">微信账户管理</span>
                            {{if data.merchantStatus == constants.weixin_wangshang.WEIXIN_PAY_STATUS.none}}<!-- 未开通 -->
                            <span class="right">去开通<i class="zhk-list_rarrow"></i></span>
                            {{else if data.merchantStatus == constants.weixin_wangshang.WEIXIN_PAY_STATUS.auditing}}<!-- 审核中 -->
                            <span class="right">审核中</span>
                            {{else if data.merchantStatus == constants.weixin_wangshang.WEIXIN_PAY_STATUS.open}}<!-- 已开通 -->
                            <span class="right"><i class="zhk-list_rarrow"></i></span>
                            {{else if data.merchantStatus == constants.weixin_wangshang.WEIXIN_PAY_STATUS.failture}}<!-- 开通失败 -->
                            <span class="right freeze">开通失败<i class="zhk-list_rarrow"></i></span>
                            {{else if data.merchantStatus == constants.weixin_wangshang.WEIXIN_PAY_STATUS.closed}}<!-- 关闭 -->
                            <span class="right">关闭</span>
                            {{/if}}
                        </li>
                    </ul>
                    {{/if}}
                </div>
            </script>

        </div>
    </div>

    <!-- js -->
    <script src="../lib/zepto.min.js" charset="utf-8"></script>
    <script src="../lib/yz-sm.min.js" charset="utf-8"></script>
    <script src="../lib/template.js" charset="utf-8"></script>
    <script src="../lib/swiper.min.js" charset="utf-8"></script>
    <script src="../lib/mobiscroll/mobiscroll.custom-2.17.0.min.js" charset="utf-8"></script>

    <script src="../base/base.js" charset="utf-8"></script>
    <script src="../js/main.js" charset="utf-8"></script>

</body>
hello
